package com.qiyu.tech.gateway.auth;

import com.qiyu.tech.gateway.dao.po.BlackListPO;

import java.util.Map;

/**
 * @Author linhao
 * @Date created in 8:43 上午 2021/3/17
 */
public interface IBlackListCache extends ICache {

    Map<String,BlackListPO> getIpBlackMap();

    Map<String,BlackListPO> getUserIdBlackMap();

    Map<String,BlackListPO> getUaBlackMap();

    BlackListPO getFromIpBlackMap(String key);

    BlackListPO getFromUserIdBlackMap(String key);

    BlackListPO getFromUaBlackMap(String key);

    void setIpBlackMap(String key, BlackListPO blackListPO);

    void setUserIdBlackMap(String key, BlackListPO blackListPO);

    void setUaBlackMap(String key, BlackListPO blackListPO);

    void setInCacheMap(String key,BlackListPO blackListPO);
}
